package org.sippr.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Project {
    @NotNull(groups = Update.class)
    private Integer id;
    @NotEmpty(groups = Add.class)
    private String name;
    private String createUser;
    private String modifyUser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifyTime;

    private String imgUrl;
    private String uuid;


    public interface Add {

    }

    public interface Update {

    }
}
